<% if @product.errors.any? %>
	<div class="error_explaination">
		<h2><%= pluralize(@product.errors.count, "error") %> prohibited this product from being added:</h2>

		<ul>
		<% @product.errors.full_messages.each do |msg| %>
			<li><%= msg %></li>
		<% end %>
		</ul>
	</div>
<% end %>

<%= simple_form_for @product do |f| %>
	<%= f.input :name %>
	<%= f.input :description %>
	<%= f.input :pricing, as: :decimal %>
	<%= f.association :category %>
	<%= f.button :submit %>
<% end %>